package com.yantong.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单
 *
 * @author kanghaixin
 */
public class Order implements Serializable {

	/**
	 * 是否交易分账订单（0不是1是）
	 */
	private Integer isTransactionLedger;
	/**
	 * 易票联手续费
	 */
	private BigDecimal yplProceduresAmount;

	private String printerQrUrl;//二维码地址

	private String brandName;//品牌名称（打印小票使用）

	private Integer commentStatus;//是否评价 0-待评价 1-已评价
	/**
	 * 优惠券记录
	 */
	private TicketRecord ticketRecord;
	/**
	 * 订单商品列表
	 */
	List<OrderProduct> orderProducts;

	/**
	 * 是否可以退款（0否  1是）
	 */
	private Integer refundFlag;

	private Integer nums;

	public Integer getRefundFlag() {
		return refundFlag;
	}

	public void setRefundFlag(Integer refundFlag) {
		this.refundFlag = refundFlag;
	}

	public Integer getNums() {
		return nums;
	}

	public void setNums(Integer nums) {
		this.nums = nums;
	}

	public List<OrderProduct> getOrderProducts() {
		return orderProducts;
	}

	public void setOrderProducts(List<OrderProduct> orderProducts) {
		this.orderProducts = orderProducts;
	}

	private Long id;

	private String ordersn;

	private Long mid;

	private String openid;

	private String nickname;

	private String avatar;

	private String realname;

	private BigDecimal orderprice;

	private BigDecimal payprice;

	private BigDecimal goodsprice;

	private String chanelname;

	private String chanelcode;

	private String payattach;
	/**
	 * 优惠券ID
	 */
	private Long trId;

	private BigDecimal discountprice;

	private BigDecimal deductprice;

	private Integer deductcredit;

	private BigDecimal deductcredit2;

	private Integer status;
	/**
	 * 状态中文名称
	 */
	private String statusName;

	private Long referrals;

	private String shortName;
	private Long promoter;
	private Integer peoplenum;
	private Integer spellgroupStu;
	private Long sgorderId;
	private Integer orderType;
	//拼团数据
	private MarketingGroup marketingGroup;

	private Integer isStores;
	private Integer isCentreUpgrade;//是否是站长升级超级店主订单
	private String terminalId;
	private Long shareMid;

	/**
	 * 0必中  1必不中  2随机中
	 */

	private Integer groupRules;

	private BigDecimal payIntegral;

	private Integer panicBuyingStatus;

	private Integer marketingGroupType;

	private Integer portType;

	public Integer getPortType() {
		return portType;
	}

	public void setPortType(Integer portType) {
		this.portType = portType;
	}

	public Integer getMarketingGroupType() {
		return marketingGroupType;
	}

	public void setMarketingGroupType(Integer marketingGroupType) {
		this.marketingGroupType = marketingGroupType;
	}

	public Integer getPanicBuyingStatus() {
		return panicBuyingStatus;
	}

	public void setPanicBuyingStatus(Integer panicBuyingStatus) {
		this.panicBuyingStatus = panicBuyingStatus;
	}

	public BigDecimal getPayIntegral() {
		return payIntegral;
	}

	public void setPayIntegral(BigDecimal payIntegral) {
		this.payIntegral = payIntegral;
	}

	public Integer getGroupRules() {
		return groupRules;
	}

	public void setGroupRules(Integer groupRules) {
		this.groupRules = groupRules;
	}

	public Long getShareMid() {
		return shareMid;
	}

	public void setShareMid(Long shareMid) {
		this.shareMid = shareMid;
	}

	public String getTerminalId() {
		return terminalId;
	}

	public void setTerminalId(String terminalId) {
		this.terminalId = terminalId;
	}

	public Integer getIsStores() {
		return isStores;
	}

	public void setIsStores(Integer isStores) {
		this.isStores = isStores;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public Integer getSpellgroupStu() {
		return spellgroupStu;
	}

	public void setSpellgroupStu(Integer spellgroupStu) {
		this.spellgroupStu = spellgroupStu;
	}

	public Long getSgorderId() {
		return sgorderId;
	}

	public void setSgorderId(Long sgorderId) {
		this.sgorderId = sgorderId;
	}

	public Long getPromoter() {
		return promoter;
	}

	public void setPromoter(Long promoter) {
		this.promoter = promoter;
	}

	public Integer getPeoplenum() {
		return peoplenum;
	}

	public void setPeoplenum(Integer peoplenum) {
		this.peoplenum = peoplenum;
	}

	public Long getReferrals() {
		return referrals;
	}

	public void setReferrals(Long referrals) {
		this.referrals = referrals;
	}

	public String getStatusName() {
		return statusName;
	}

	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}

	/**
	 * This field was generated by MyBatis Generator.
	 * This field corresponds to the database column t_order.create_time
	 *
	 * @mbggenerated Sun Sep 09 11:11:47 CST 2018
	 */
	private Date createTime;

	private Integer paystatus;

	private Integer paytype;

	private Date payTime;

	private String payno;

	private String payMerchantNo;

	private String payopenid;

	private String outTradeNo;

	private String remark;

	private String sname;

	private String mobile;

	private String province;

	private String city;

	private String district;

	private String address;

	private Integer deleted;

	private Integer sysdeleted;

	private Integer userdeleted;

	private Date sendTime;

	private Date fetchTime;

	private Date finishTime;

	private String iscomment;

	private Integer refundid;

	private Date refundTime;

	private String refundsn;

	private String refundNo;

	private Integer autofinish;

	private Date closeTime;

	private Long tMid;

	private String tNickname;

	private Long ttMid;

	private String ttNickname;

	private BigDecimal headcommission;

	private String saddress;

	private BigDecimal tserviceprice;

	private String tXiaoqu;

	private Integer goodstotal;

	private Long centreId;

	private Long workId;//工单id

	private Long ogid;//订单商品id

	private Long wrkStu;//工单状态
	private String worksn;//工单编号
	private BigDecimal money;//工单价格
	private Integer isCentreord;//是否是站长商品订单
	private Integer isupgrade;//是否是升级订单

	private Integer plateType; //版块标识


	public Integer getPlateType() {
		return plateType;
	}

	public void setPlateType(Integer plateType) {
		this.plateType = plateType;
	}

	public Integer getIsupgrade() {
		return isupgrade;
	}

	public void setIsupgrade(Integer isupgrade) {
		this.isupgrade = isupgrade;
	}

	public Integer getIsCentreord() {
		return isCentreord;
	}

	public void setIsCentreord(Integer isCentreord) {
		this.isCentreord = isCentreord;
	}

	public String getPayattach() {
		return payattach;
	}

	public void setPayattach(String payattach) {
		this.payattach = payattach;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public String getWorksn() {
		return worksn;
	}

	public void setWorksn(String worksn) {
		this.worksn = worksn;
	}

	public Long getWrkStu() {
		return wrkStu;
	}

	public void setWrkStu(Long wrkStu) {
		this.wrkStu = wrkStu;
	}

	public Long getOgid() {
		return ogid;
	}

	public void setOgid(Long ogid) {
		this.ogid = ogid;
	}

	public Long getWorkId() {
		return workId;
	}

	public void setWorkId(Long workId) {
		this.workId = workId;
	}

	/**
	 * 商户名称
	 */
	private String centreName;

	public String getChanelname() {
		return chanelname;
	}

	public void setChanelname(String chanelname) {
		this.chanelname = chanelname;
	}

	public String getChanelcode() {
		return chanelcode;
	}

	public void setChanelcode(String chanelcode) {
		this.chanelcode = chanelcode;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getOrdersn() {
		return ordersn;
	}

	public void setOrdersn(String ordersn) {
		this.ordersn = ordersn == null ? null : ordersn.trim();
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid == null ? null : openid.trim();
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname == null ? null : nickname.trim();
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar == null ? null : avatar.trim();
	}

	public String getRealname() {
		return realname;
	}

	public void setRealname(String realname) {
		this.realname = realname == null ? null : realname.trim();
	}

	public BigDecimal getOrderprice() {
		return orderprice;
	}

	public void setOrderprice(BigDecimal orderprice) {
		this.orderprice = orderprice;
	}

	public BigDecimal getPayprice() {
		return payprice;
	}

	public void setPayprice(BigDecimal payprice) {
		this.payprice = payprice;
	}

	public BigDecimal getGoodsprice() {
		return goodsprice;
	}

	public void setGoodsprice(BigDecimal goodsprice) {
		this.goodsprice = goodsprice;
	}

	public BigDecimal getDiscountprice() {
		return discountprice;
	}

	public void setDiscountprice(BigDecimal discountprice) {
		this.discountprice = discountprice;
	}

	public BigDecimal getDeductprice() {
		return deductprice;
	}

	public void setDeductprice(BigDecimal deductprice) {
		this.deductprice = deductprice;
	}

	public Integer getDeductcredit() {
		return deductcredit;
	}

	public void setDeductcredit(Integer deductcredit) {
		this.deductcredit = deductcredit;
	}

	public BigDecimal getDeductcredit2() {
		return deductcredit2;
	}

	public void setDeductcredit2(BigDecimal deductcredit2) {
		this.deductcredit2 = deductcredit2;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getPaystatus() {
		return paystatus;
	}

	public void setPaystatus(Integer paystatus) {
		this.paystatus = paystatus;
	}

	public Integer getPaytype() {
		return paytype;
	}

	public void setPaytype(Integer paytype) {
		this.paytype = paytype;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public String getPayno() {
		return payno;
	}

	public void setPayno(String payno) {
		this.payno = payno == null ? null : payno.trim();
	}

	public String getPayMerchantNo() {
		return payMerchantNo;
	}

	public void setPayMerchantNo(String payMerchantNo) {
		this.payMerchantNo = payMerchantNo == null ? null : payMerchantNo.trim();
	}

	public String getPayopenid() {
		return payopenid;
	}

	public void setPayopenid(String payopenid) {
		this.payopenid = payopenid == null ? null : payopenid.trim();
	}

	public String getOutTradeNo() {
		return outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname == null ? null : sname.trim();
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile == null ? null : mobile.trim();
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province == null ? null : province.trim();
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city == null ? null : city.trim();
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district == null ? null : district.trim();
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address == null ? null : address.trim();
	}

	public Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}

	public Integer getSysdeleted() {
		return sysdeleted;
	}

	public void setSysdeleted(Integer sysdeleted) {
		this.sysdeleted = sysdeleted;
	}

	public Integer getUserdeleted() {
		return userdeleted;
	}

	public void setUserdeleted(Integer userdeleted) {
		this.userdeleted = userdeleted;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Date getFetchTime() {
		return fetchTime;
	}

	public void setFetchTime(Date fetchTime) {
		this.fetchTime = fetchTime;
	}

	public Date getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}

	public String getIscomment() {
		return iscomment;
	}

	public void setIscomment(String iscomment) {
		this.iscomment = iscomment;
	}

	public Integer getRefundid() {
		return refundid;
	}

	public void setRefundid(Integer refundid) {
		this.refundid = refundid;
	}

	public Date getRefundTime() {
		return refundTime;
	}

	public void setRefundTime(Date refundTime) {
		this.refundTime = refundTime;
	}

	public String getRefundsn() {
		return refundsn;
	}

	public void setRefundsn(String refundsn) {
		this.refundsn = refundsn == null ? null : refundsn.trim();
	}

	public String getRefundNo() {
		return refundNo;
	}

	public void setRefundNo(String refundNo) {
		this.refundNo = refundNo == null ? null : refundNo.trim();
	}

	public Integer getAutofinish() {
		return autofinish;
	}

	public void setAutofinish(Integer autofinish) {
		this.autofinish = autofinish;
	}

	public Date getCloseTime() {
		return closeTime;
	}

	public void setCloseTime(Date closeTime) {
		this.closeTime = closeTime;
	}

	public Long gettMid() {
		return tMid;
	}

	public void settMid(Long tMid) {
		this.tMid = tMid;
	}

	public String gettNickname() {
		return tNickname;
	}

	public void settNickname(String tNickname) {
		this.tNickname = tNickname == null ? null : tNickname.trim();
	}

	public Long getTtMid() {
		return ttMid;
	}

	public void setTtMid(Long ttMid) {
		this.ttMid = ttMid;
	}

	public String getTtNickname() {
		return ttNickname;
	}

	public void setTtNickname(String ttNickname) {
		this.ttNickname = ttNickname == null ? null : ttNickname.trim();
	}

	public BigDecimal getHeadcommission() {
		return headcommission;
	}

	public void setHeadcommission(BigDecimal headcommission) {
		this.headcommission = headcommission;
	}

	public String getSaddress() {
		return saddress;
	}

	public void setSaddress(String saddress) {
		this.saddress = saddress == null ? null : saddress.trim();
	}

	public BigDecimal getTserviceprice() {
		return tserviceprice;
	}

	public void setTserviceprice(BigDecimal tserviceprice) {
		this.tserviceprice = tserviceprice;
	}

	public String gettXiaoqu() {
		return tXiaoqu;
	}

	public void settXiaoqu(String tXiaoqu) {
		this.tXiaoqu = tXiaoqu == null ? null : tXiaoqu.trim();
	}

	public Integer getGoodstotal() {
		return goodstotal;
	}

	public void setGoodstotal(Integer goodstotal) {
		this.goodstotal = goodstotal;
	}

	public Long getCentreId() {
		return centreId;
	}

	public void setCentreId(Long centreId) {
		this.centreId = centreId;
	}

	public String getCentreName() {
		return centreName;
	}

	public void setCentreName(String centreName) {
		this.centreName = centreName;
	}

	public Long getTrId() {
		return trId;
	}

	public void setTrId(Long trId) {
		this.trId = trId;
	}

	public TicketRecord getTicketRecord() {
		return ticketRecord;
	}

	public void setTicketRecord(TicketRecord ticketRecord) {
		this.ticketRecord = ticketRecord;
	}

	public Integer getCommentStatus() {
		return commentStatus;
	}

	public void setCommentStatus(Integer commentStatus) {
		this.commentStatus = commentStatus;
	}

	public String getBrandName() {
		return brandName;
	}

	public void setBrandName(String brandName) {
		this.brandName = brandName;
	}

	public String getPrinterQrUrl() {
		return printerQrUrl;
	}

	public void setPrinterQrUrl(String printerQrUrl) {
		this.printerQrUrl = printerQrUrl;
	}

	public MarketingGroup getMarketingGroup() {
		return marketingGroup;
	}

	public void setMarketingGroup(MarketingGroup marketingGroup) {
		this.marketingGroup = marketingGroup;
	}

	public Integer getIsCentreUpgrade() {
		return isCentreUpgrade;
	}

	public void setIsCentreUpgrade(Integer isCentreUpgrade) {
		this.isCentreUpgrade = isCentreUpgrade;
	}

	public Integer getIsTransactionLedger() {
		return isTransactionLedger;
	}

	public void setIsTransactionLedger(Integer isTransactionLedger) {
		this.isTransactionLedger = isTransactionLedger;
	}

	public BigDecimal getYplProceduresAmount() {
		return yplProceduresAmount;
	}

	public void setYplProceduresAmount(BigDecimal yplProceduresAmount) {
		this.yplProceduresAmount = yplProceduresAmount;
	}
}